package com.xiexiaozhou.helper.web.from;

import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

@Data
public class OrderForDeliverForm {

    @NotEmpty(message = "收货人姓名不能为空")
    private String consignee;

    @NotEmpty(message = "收货人电话不能为空")
    private String consigneeMobile;

    @NotEmpty(message = "收货人地址不能为空")
    private String customerAddress;

    @NotEmpty(message = "物品不能为空")
    private String goods;

    @NotEmpty(message = "送货人姓名不能为空")
    private String consigner;

    @NotEmpty(message = "送货人电话不能为空")
    private String consignerMobiel;

    @NotEmpty(message = "取货地址不能为空")
    private String pickupAddress;

    @NotEmpty(message = "详细信息不能为空")
    private String detail;

    private Integer serviceType = 3;

    public OrderForDeliverForm() {
    }

    public OrderForDeliverForm(String consignee, String consigneeMobile, String customerAddress, String consigner, String consignerMobiel, String pickupAddress, String detail) {
        this.consignee = consignee;
        this.consigneeMobile = consigneeMobile;
        this.customerAddress = customerAddress;
        this.consigner = consigner;
        this.consignerMobiel = consignerMobiel;
        this.pickupAddress = pickupAddress;
        this.detail = detail;
    }
}
